package com.spring.nio.core.event.handler;

import com.spring.nio.core.event.model.EventModel;

/**
 * @Auther: YSFY
 * @Date: 2020-11-21 10:38
 * @Pacage_name: com.spring.nio.core.event.handler
 * @Project_Name: nio-server
 * @Description: 事件处理模型
 */
public interface EventHandler<T extends EventModel> {

    /**
     * 事件处理
     * @param t
     * @return T
     * */
    T eventHandler(T t);

}
